package com.zzyl.mapper;

import com.zzyl.dto.ResourceDto;
import com.zzyl.entity.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper {
    public List<Resource> list(Resource r);

    void insert(Resource bean);

    Resource selectByParentResourceNo(@Param("parentResourceNo") String parentResourceNo);

    List<Resource> selectList(ResourceDto dto);

    List<Resource>  selectListByUserId(Long userId);
}
